<?php
	$data = array();
	$db = new libraries_libhome();
	$pro = new model_mpro();
	$data['info'] = $db->getconfig(1);
	$data['title'] = $data['info']['config_title'];
	$data['list_cate'] = $pro->list_cate();
	$start = 0;
	$limit = 4;
	//debug($data['list_cate']);
	$data['list_slide'] = $db->list_slide();
	$data['list_pro_new'] = $pro->list_pro_new($start,$limit);
	$data['list_pro_hot'] = $pro->list_pro_hot($start,$limit);
	$data['list_pro_saleoff'] = $pro->list_pro_saleoff($start,$limit);
	$data['list_pro_bestsale'] = $pro->list_pro_bestsale($start,$limit);
	$data['template'] = "home";
	loadview("layout",$data);
?>